// type  vs   interface

// type MyType = {
//     name: string,
//     age: number
// }


const obj = {
    name: '张三',
    age: 18
}


type MyType = string | number

let a: MyType = 1
a = '1'